Skip to content

feat: add codex-repository scaffold#2

Closed
laz-xyr wants to merge 1 commit intomasterfrom
codex/create-new-codex-repository
Closed

feat: add codex-repository scaffold#2
laz-xyr wants to merge 1 commit intomasterfrom
codex/create-new-codex-repository

Conversation

@laz-xyr
Copy link
Owner

@laz-xyr laz-xyr commented Mar 2, 2026

Motivation

  • Provide a lightweight, copy-able scaffold to quickly bootstrap a Codex-focused repository with a standard layout for config, prompts, and helper scripts.
  • Predefine sensible defaults (language, model, workflows) and a reusable system prompt to accelerate consistent assistant behavior across projects.

Description

  • Add a new codex-repository/ directory containing a project README at codex-repository/README.md with quick-start instructions.
  • Add codex-repository/codex.config.yaml that seeds repository metadata, default model (gpt-5.2-codex), temperature, and two workflows (plan and implement).
  • Add a reusable system prompt template at codex-repository/prompts/system.md to standardize assistant behavior.
  • Add an initialization script codex-repository/scripts/bootstrap.sh that runs git init if needed, creates a basic .gitignore, and is marked executable.

Testing

  • bash -n codex-repository/scripts/bootstrap.sh (script syntax check) succeeded.
  • git log -1 --stat --oneline displayed the new commit and files, confirming the changes were committed successfully.
  • git show --name-only --pretty=format:'%H%n%s' HEAD confirmed the commit metadata and file list succeeded.
  • An attempted external web fetch via a python one-liner failed with a 403 Forbidden (network access blocked), which did not affect local validation steps.

Codex Task

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license-eye has checked 1611 files.

Valid Invalid Ignored Fixed
1112 4 495 0
Click to see the invalid file list
  • codex-repository/README.md
  • codex-repository/codex.config.yaml
  • codex-repository/prompts/system.md
  • codex-repository/scripts/bootstrap.sh
Use this command to fix any missing license headers
```bash

docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix

</details>

@@ -0,0 +1,16 @@
# Codex Repository Template
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Codex Repository Template
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
# Codex Repository Template

@@ -0,0 +1,13 @@
name: my-codex-repo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: my-codex-repo
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: my-codex-repo

@@ -0,0 +1,4 @@
你是一个高效的软件工程助手。
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
你是一个高效的软件工程助手。
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
你是一个高效的软件工程助手。

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#!/usr/bin/env bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant